<template>
    <view class="pub_page pub_page_bg pub_set pub_header_padding">
        <pub-head headerName="about_us" :headerConfig="headerConfig"></pub-head>
        <div class="set_box">
            <div class="img_box">
                <pub-image class="img" :src="adInfo" mode="widthFix" />
            </div>
        </div>
    </view>
</template>

<script>
export default {
    data() {
        return {
            pagescrollTop: 0,
            headerConfig: {
                title: '关于我们',//标题栏内容
                left_type: 3,
            },

            adInfo: ''
        };
    },
    onLoad() {
        this.getAdInfo();
    },
    onPageScroll(res) { },
    methods: {
        async getAdInfo() {
            const res = await this.$request.get('public/getAd', {
                key: 'about-ad'
            });
            // console.log(res);
            if (res.code == 200) {
                this.adInfo = res.result.length > 0 && res.result[0].image ? res.result[0].image : '';
            }
        },
    },
};
</script>

<style lang="scss" scoped>
@import "@/common/css/other.scss";
@import "@/common/css/mine.scss";
</style>
